/*	
	This file is part of JUCI (https://github.com/mkschreder/juci.git)

	Copyright (c) 2015 Martin K. Schröder <mkschreder.uk@gmail.com>

	This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
*/ 

JUCI.app
.controller("LoginPageCtrl", function($scope, $rpc){
	$rpc.$reset(); 
	/*JUCI.interval.repeat("juci-check-loggedin", 1000, function(done){
		$rpc.$authenticate().done(function(){
			window.location.href="/"; 
		}).always(function(){
			done(); 
		}); 
	})a; */
}); 

JUCI.page("login", "pages/login.html"); 
